home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / CONTRIB / MAN_PC.ZIP / man_pc / whatis / whatis.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-20  |  1.4 KB  |  62 lines

  1. /*
  2.  *    whatis.h
  3.  */
  4.  
  5. static char *rcsid_whatis_h = "$Id: whatis.h,v 2.0 1992/09/13 05:02:44 rosenkra Exp $";
  6.  
  7. /*
  8.  * $Log: whatis.h,v $
  9.  * Revision 2.0  1992/09/13  05:02:44  rosenkra
  10.  * total rewrite. this if first rev of this file.
  11.  *
  12.  *
  13.  */
  14.  
  15. #ifdef CHECK_MAGIC
  16. #define MAGIC        "WHATIS/ST"    /* file's magic */
  17. #define MAGIC_CHECK_LEN    9        /* how much of magic has to match? */
  18.                     /* rest is comment. this MAGIC is */
  19.                     /* for whatis._?_ files */
  20. #endif
  21.  
  22. #if defined(unix) || defined(__unix)
  23. #define MANPATH        "/usr/man\0\0<-----------patch space------------->"
  24.                     /* db is $MANPATH/whatis._?_ */
  25. #else
  26. #define MANPATH        "c:\\usr\\man\0\0<-----------patch space------------->"
  27.                     /* db is $MANPATH/whatis._?_ */
  28. #endif
  29. #define WHATIS        "whatis"    /* db name (root) */
  30. #define WHATISIN    "whatisin"    /* list of sections */
  31.  
  32. #define SECTIONS    "0123456789lno\0\0<----------patch space------------->"
  33.                     /* list of sections */
  34.  
  35. #if defined(unix) || defined(__unix)
  36. #define SLASH        "/"        /* use "/" for unix, UNIXMODE */
  37. #else
  38. #define SLASH        "\\"        /* use "/" for unix, UNIXMODE */
  39. #endif
  40.  
  41. #define REC_SIZE    1024        /* max line length in database */
  42.  
  43. #define MAX_ALIAS    10        /* max number of aliases, */
  44. #define MAX_XREF    50        /* cross refs, and */
  45. #define MAX_KEYW    50        /* keywords */
  46.  
  47.  
  48. /*
  49.  *    record structure (after reading from file)
  50.  */
  51. struct rec
  52. {
  53.     char   *name;
  54.     char   *alias[MAX_ALIAS];
  55.     char   *section;
  56.     char   *subsect;
  57.     char   *desc;
  58.     char   *xref[MAX_XREF];
  59.     char   *keyw[MAX_KEYW];
  60. };
  61.  
  62.